package chapter3.No3_2_方法join的使用.demo7;

/**
 * Created by Administrator on 2016/11/20.
 */
public class ThreadB extends Thread {
    @Override
    synchronized public void run() {
        System.out.println("B run begin:"+System.currentTimeMillis());
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("B run end:"+System.currentTimeMillis());
    }
}
